package com.ailk.kbi.kbiwarden.wsi.vo;

class WhereVO {
	String column	
	String equalSign
	String value
	
	String toString(){		
		column + equalSign + "'" + value + "'"
	}
	
	String toTeradataDateString(){		
		column + " " + equalSign + " '" + value.substring(0, 4) + "-"+ value.substring(4, 6) + "-"+ value.substring(6, 8) + "'"
	}
	
	String toDB2DateString(){		
		column + " " + equalSign + " DATE('" + value.substring(0, 4) + "-"+ value.substring(4, 6) + "-"+ value.substring(6, 8) + "')"
	}
	
	String toNumberString(){		
		column + " " + equalSign + " " + value
	}
}
